pull-local: Fix race condition pointed out by Benjamin
authorColin Walters <walters@verbum.org>
Sat, 8 Jun 2013 18:15:43 +0000 (14:15 -0400)
committerColin Walters <walters@verbum.org>
Sat, 8 Jun 2013 18:15:43 +0000 (14:15 -0400)
commitc57e63a5158dc91aa606fc54e7a665e3fd068d2d
treef97a97518d557ef736cf51c73547e928b4d91788
parent3e1e26352fc351423fcd5b5b322238247ee148e6
pull-local: Fix race condition pointed out by Benjamin

We could drop into g_main_loop_run() after the worker
thread had called g_main_loop_quit().

Fix this by following the pattern suggested by Ryan of a while loop
around our termination condition, and g_main_context_iteration().
src/ostree/ot-builtin-pull-local.c